package com.item.news.util;

import java.io.UnsupportedEncodingException;

public class StringEncode {

	/**
	 * 将ISO-8859-1编码字符串转换UTF-8编码
	 *
	 * @param param
	 * @return
	 */
	public static String toUTF8(String param) {
		if (param == null) {
			return null;
		} else {
			try {
				param = new String(param.getBytes("ISO-8859-1"), "GBK");
			} catch (UnsupportedEncodingException e) {
				e.printStackTrace();
				return param;
			}
		}
		return param;
	}


}